<?php
require_once('../firelynx.php');
if(!isset($_REQUEST['nextstep'])){
    $page = fily_XMLConverter::convertFile('step0.xml');
    echo $page;
}
else if($_REQUEST['nextstep'] == 1){
    if(!isset($_REQUEST['country'])){
        $response = fily_XMLConverter::convertFile('step1.xml');
        echo $response;
    }
    else{
       $response = fily_XMLConverter::convertFile('step1country.xml');
       $label = $response->find(":first");
       $label->setText('selected country: '. $response->getTriggerValue());
       echo $response;
    }
}
else {
       $response =  fily_XMLConverter::convertFile('step2.xml');
        echo $response;
}
?>